package com.bdqn.Sj02.pojo;

public class Trainee {
    private String name;
    private double age;             //练习时长

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Trainee() {
    }

    public Trainee(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void print(){
        System.out.println(this.name+this.getAge());
    }
}
